package com.partvoyage.client.mvp2.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class ChargerPhotoPicassaEvent extends
		GwtEvent<ChargerPhotoPicassaEvent.ChargerPhotoPicassaEventHandler> {
	public static Type<ChargerPhotoPicassaEventHandler> TYPE = new Type<ChargerPhotoPicassaEventHandler>();

	public interface ChargerPhotoPicassaEventHandler extends EventHandler {
		void onChargerPhotoPicassa(ChargerPhotoPicassaEvent event);
	}

	private Double latitude;
	private Double longitude;

	public ChargerPhotoPicassaEvent(Double latitude, Double longitude) {
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ChargerPhotoPicassaEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ChargerPhotoPicassaEventHandler handler) {
		handler.onChargerPhotoPicassa(this);

	}

}
